package com.xfhy.wallpaperdemo.lock;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class JumpActivity extends Activity {
    public static final String a = "JumpActivity";

    @SuppressLint("WrongConstant")
    private void a(Intent intent) {
        if (!(intent == null || intent.getStringExtra("key") == null)) {
            Intent intent2 = null;
            /*if (OnekeyField.NORMAL_AREA.equals(intent.getStringExtra("key"))) {
                intent2 = new Intent(this, HomeActivity.class);
                intent2.putExtra("key", OnekeyField.NORMAL_AREA);
                intent2.setAction(HomeActivity.ACTION_AUTO_CLEAN);
            } else if ("clean".equals(intent.getStringExtra("key"))) {
                intent2 = new Intent(this, HomeActivity.class);
                intent2.putExtra("key", "clean");
                intent2.setAction(HomeActivity.ACTION_AUTO_CLEAN);
            } else if (OnekeyField.KILLBACKGROUND.equals(intent.getStringExtra("key"))) {
                intent2 = new Intent(this, CleanRAMActivity.class);
                intent2.putExtra("key", OnekeyField.KILLBACKGROUND);
            } else if (OnekeyField.HONGBAO.equals(intent.getStringExtra("key"))) {
                intent2 = new Intent(this, HomeActivity.class);
                intent2.putExtra("key", OnekeyField.HONGBAO);
            } else if ("other".equals(intent.getStringExtra("key"))) {
                intent2 = new Intent(this, HomeActivity.class);
            }*/
            if (intent2 != null) {
                intent2.addFlags(268468224);
                startActivity(intent2);
            }
        }
        finish();
    }

    @Override
    public void finish() {
        Log.e(a, "finish");
        super.finish();
        overridePendingTransition(0, 0);
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        overridePendingTransition(0, 0);
        Log.e(a, "onCreate");
        a(getIntent());
    }

    @Override
    public void onDestroy() {
        Log.e(a, "onDestroy");
        super.onDestroy();
    }

    @Override
    public void onResume() {
        Log.e(a, "onResume");
        super.onResume();
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.e(a, "onStop");
    }
}
